package day5;

public class Customer {
    public int integral; // 积分
    public String cardType; // 卡片类型


    public void aa() {
        int integral = 2;
        System.out.println(integral);

    }




    public void feedbackIntegral() {
        System.out.println("积分：" + integral + ",卡类型：" + cardType);
        if(("金卡".equals(cardType) && integral > 1000) ||
                ("普卡".equals(cardType) && integral > 5000)) {
            integral += 500;
            System.out.println("回馈积分500分！");
        } else {
            System.out.println("对不起，您的条件不满足回馈活动!");
        }
    }
}
